# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-icon-theme-symbolic
pkgver=3.12.0
pkgrel=0
pkgdesc="Symbolic GNOME icons"
url="https://git.gnome.org/browse/gnome-icon-theme-symbolic"
arch="noarch"
license="CC-BY-SA"
makedepends="icon-naming-utils"
source="https://download.gnome.org/sources/gnome-icon-theme-symbolic/${pkgver%.*}/gnome-icon-theme-symbolic-$pkgver.tar.xz"

prepare() {
	local i
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i ;;
		esac
	done
}

build() {
	# Avoid a BuildRequires on gtk2-devel
	export ac_cv_path_GTK_UPDATE_ICON_CACHE=/bin/true
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="e2a662d38c5c1328f384d9bdd73ce54f4e1174a1d88763e4a5f772c2479081f11c81937ba2dc159ce250e433762f14de824516fc68209200d95dc47790471eda  gnome-icon-theme-symbolic-3.12.0.tar.xz"
